home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4161 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: chang.unx.sas.com!walker
  3. From: walker@chang.unx.sas.com (Doug Walker)
  4. Subject: Re: Shared library open and close functions
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <DMvCKp.MD4@unx.sas.com>
  7. Date: Fri, 16 Feb 1996 12:41:13 GMT
  8. X-Nntp-Posting-Host: chang.unx.sas.com
  9. References: <510.6619T1238T1638@Th0r.foo.bar>
  10. Organization: SAS Institute Inc.
  11.  
  12. In article <510.6619T1238T1638@Th0r.foo.bar>,
  13. Christopher Naas <christon> wrote:
  14. >How do I add functions to a shared library that are called the first time the
  15. >library is opened and when the library is removed from memory?
  16. >
  17. >I want one function that is called the first time the library is opened, and
  18. >one function that is called when the library is closed by the last user and it
  19. >is flushed from memory.
  20. >
  21. >I use SAS/C.
  22.  
  23. In version 6.50, you can create a __UserLibInit and __UserLibTerm function and
  24. they will be automatically called.  Check out your Library Reference Manual for
  25. more details.
  26.  
  27. -- 
  28.   *****                    / walker@unx.sas.com
  29.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  30.  *|. o.| ||                \ AOL: weissblau
  31.   | o  |//     
  32.   ====== 
  33. Any opinions expressed are mine, not those of SAS Institute, Inc.
  34.  
  35.